<template>
    <div>
      <div class="title">详情页</div>
      <div>这是商品：{{ good_id }}</div>
      <v-back></v-back>
    </div>
  </template>
  
  <script>
  export default {
    data(){
      return {
         good_id:""
      }
    },
     mounted(){
       //this.$route.params.变量名
       console.log(this.$route.params.id);
       this.good_id = this.$route.params.id
     }
  }
  </script>
  
  <style scoped>
  .title {
  width: 100vw;
  height: 0.8rem;
  background: rgb(255, 96, 64);
  text-align: center;
  font: 0.4rem/0.8rem "微软雅黑";
  color: #fff;
}
  </style>